package _99练习;

import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;

public class BankServiceSystem {
	Queue<Integer> num = new LinkedList<>();
	
	public void getNum() {
		int x=1;
		num.offer(x++);
		System.out.println("当前取号："+num.size()+",前面还有"+(num.size()-1));
	}
public void callNum() {
		if(num.peek()!=null) {
			System.out.println("请编号为："+num.poll()+"的顾客到前台办理业务");
			
		}else {
			System.out.println("往前没有排队的顾客");
		}
	}

}